package warpper;

public class IntegerDemo1 {
    public static void main(String[] args) {
        int a=128;
       // Integer i1 =new Integer(a);
        //Integer i2 =new Integer(a);
        //System.out.println(i1);

        Integer i1 =Integer.valueOf(a);
        Integer i2 =Integer.valueOf(a);
        System.out.println(i1==i2);
        System.out.println(i1.equals(i2));

        double d=123.123;
        Double d1 =Double.valueOf(d);
        Double d2 =Double.valueOf(d);
        System.out.println(d1==d2);
        System.out.println(d1.equals(d2));

        int i =i1 .intValue();
        System.out.println(i);
        double dou =i1.doubleValue();
        System.out.println(dou);//123.0

        byte b =i1.byteValue();//128.0
        System.out.println(b);//-128

    }
}
